package com.tmc.bean.intair;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

public class EthShoppingResp implements Serializable {

	private static final long serialVersionUID = 1712986984486202341L;
	private boolean success;
	private String message;
	private List<EthFare> fares;// commisionPolicy
	private Map<String, Map<String, EthFlight>> avMap;//privateFare

	public static EthShoppingResp makeFail(String message){
		return new EthShoppingResp(false, message, null, null);
	}
	
	public EthShoppingResp (boolean success, String message, List<EthFare> fares, Map<String, Map<String, EthFlight>> avMap){
		this.success = success;
		this.message = message;
		this.fares = fares;
		this.avMap = avMap;
	}
	public EthShoppingResp() {

	}

	public List<EthFare> getFares() {
		return fares;
	}

	public void setFares(List<EthFare> fares) {
		this.fares = fares;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Map<String, Map<String, EthFlight>> getAvMap() {
		return avMap;
	}

	public void setAvMap(Map<String, Map<String, EthFlight>> avMap) {
		this.avMap = avMap;
	}

}
